package com.company.poker.protocol;

/**
 * Description of class.
 * Created 4/12/13 1:16 PM
 *
 * @author andrey.rodin@playtech.com
 */

public enum AddresseeType {
    NONE(0),
    USER(1),
    TABLE(2),
    LOBBY(3),
    CHANNEL(4),
    GAME(5)
    ;

    private int code;

    AddresseeType(int i) {
        this.code = i;
    }

    public int getCode() {
        return code;
    }

    public static AddresseeType getByCode(int i) {
        return values()[i];
    }
}
